<?php
session_start();
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="layout.css" />
<title>Products</title>
</head>

<body>
<div id="container">
<div id="logo"><img src="images/logo.png" alt="Logo" height="117" width="619" /></div>
<div id="nav">
<ul>
		<li><a href="index.php">Home</a></li>
        <li><a href="products.php">Products</a></li>
        <li><a href="contact.php">Contact Me</a></li>
</ul>
</div>
<div id="content">
	<p>Products Page Content.</p><br><br><br><br><br><br><br><br>
</div>
<?php
if(isset($_SESSION['username'])){
	echo "Welcome, ".$_SESSION['username']."!<br><form action='logout.php' method='POST'><br><input type='submit' value='Log Out'><br>
</form></p><p>";
	echo "<a href='editaccount.php'>Edit Account</a><br>";
}
else{
?>
<p align="center">
<form action='login.php' method='POST'>
	Username: <input type='text' name='username'><br>
	Password: <input type='password' name='password'><br>
	<input type='submit' value='Log in'><br>
</form></p><p>
<a href='register.php'>Register?</a>
<?php } ?>

<div id="footer"><i>Copyright &copy; 2012 E-commerce site</i><br />
<a href="mailto:npratt3284@gmail.com">npratt3284@gmail.com</a></div>

</div>

</body>
</html>